const { override, addLessLoader } = require('customize-cra')

module.exports = override(
  addLessLoader({
    strictMath: true,
    noIeCompat: true,
    // less-loader选项，这里只是针对less文件
    // cssLoaderOptions: {}, // .less file used css-loader option, not all CSS file.
    // 模块化的配置 这里只是针对于less文件
    cssModules: {
      localIdentName: "[path][name]__[local]--[hash:base64:5]", // if you use CSS Modules, and custom `localIdentName`, default is '[local]--[hash:base64:5]'.
    },
    javascriptEnabled: true
  })
)